set01 = {1, 2, 3}
set02 = {2, 3, 4}

# 交集
intersection_set = set01 & set02
print(intersection_set)

# 并集
union_set = set01 | set02
print(union_set)

#  补集
supplementary_set = set01 ^ set02
print(supplementary_set)

left_supplementary_set = set01 - set02
print(left_supplementary_set)

right_supplementary_set = set02 - set01
print(right_supplementary_set)

#   子集  <

s06 = {1, 2, 3}
s07 = {1, 2}
print(s07 < s06)
# 超集 >
print(s06 > s07)

# 相同 ==

# 固定集合
f01 = frozenset([1, 2, 2, 4])
print(type(f01))
print(f01)

